using Web.App.Infrastructure.ApplicationMessages.Contracts;
namespace Webshop20.Application.Queries.Messages
{
    public class LoginResponse : ResponseMessageBase
    {
        private readonly bool IsAuthenticated;
        private readonly int accountId;


        public LoginResponse(bool isAuthenticated, int accountId, IDomainMessage domainMessage) : base(domainMessage)
        {
            IsAuthenticated = isAuthenticated;
            this.accountId = accountId;
        }


        public int AccountId
        {
            get { return accountId; }
        }

        public bool IsAuthenticated_
        {
            get { return IsAuthenticated; }
        }
    }
}